liblockdep: Fix 'defined but not used' warning for init_utsname()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:32:11 +0000 (21:32 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 18 Jun 2017 08:14:32 +0000 (09:14 +0100)
commit21eb8b7de7a5a191b404609a7ccd1721bcff6d32
tree1163bfb930325eef6feb9129ad17a5056ee56d81
parent73a7f45d0ceadfb57c437be5e6b8d463edf75dff
liblockdep: Fix 'defined but not used' warning for init_utsname()

We define init_utsname() as static but not inline, resulting
in a warning for every source file that includes lockdep.h but
doesn't call it.

Since it is only used by lockdep.c, define it in there.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-defined-but-not-used-warning-for-init.patch
tools/lib/lockdep/lockdep.c
tools/lib/lockdep/uinclude/linux/lockdep.h